﻿// This program is open source software: you can redistribute it and/or modify 
// it under the terms of the GNU Affero General Public License as published by 
// the Free Software Foundation, either version 3 of the License, or 
// (at your option) any later version. 

// This program is distributed in the hope that it will be useful, 
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
// GNU Affero General Public License for more details. 

// You should have received a copy of the GNU Affero General Public License 
// along with this program. If not, see <http://www.gnu.org/licenses/>. 

// (c) 2003-2009 Olivier Giulieri - olivier@evolutility.org 

using System;
using System.Collections.Generic;
using System.Text;

namespace Evolutility
{

	static class EvoLang
	{

//### Variables - Language ### 
#region "Language Variables"

		static internal string _LOCAL;

		static internal string entity;
		static internal string entities;

		static internal string allEntities;
		static internal string AllEntities;
		static internal string Welcome;
		static internal string CommentsPostedOn;
		static internal string InsertEntity;
		static internal string ModifyEntity;
		static internal string DownloadEntity;
		static internal string NoEntity;

		static internal string ExportEntity;
		static internal string ExportHeader;
		static internal string ExportSeparator;
		static internal string ExportFirstLine;
		static internal string ExportFormat;
		static internal string ExportFields;
		static internal string IDkey;
		static internal string ExportFormats;

		static internal string MHValidValue;
		static internal string NA;
		static internal string NoUpload;
		static internal string NoUpload2;
		static internal string Customize;
		static internal string NewSave;
		static internal string CannotUpdate;
		static internal string NoUpdate;
		static internal string CannotDelete;
		static internal string DeleteOK;
		static internal string Updated;
		static internal string DetailsUpdate;
		static internal string PleaseLogin;
		static internal string Logout;
		static internal string Login;
		static internal string LoginB;
		static internal string Password;
		static internal string InvalidLogin;
		static internal string InvalidLogin2;
		//friend Remember As String = "Remember me" 
		static internal string AddRow;
		static internal string DelRow;

		static internal string wPix;
		static internal string wDoc;
		static internal string wComments;
		static internal string yes;
		static internal string no;
		static internal string any;
		static internal string anyof;
		static internal string PubMine;
		//friend MyEntities As String = "My ~ENTITIES~" 

		static internal string AdvSearch;
		static internal string View;
		static internal string Edit;
		// friend Login As String = "Login" 
		static internal string New;
		static internal string NewItem;
		static internal string NewUpload;
		static internal string Search;
		static internal string NewSearch;
		static internal string Selection;
		static internal string Selections;
		static internal string Export;
		static internal string SearchRes;
		static internal string Delete;
		static internal string ListAll;
		static internal string Print;
		static internal string DeleteEntity;
		static internal string Back2SearchResults;

		static internal string pFirst, pPrev, pNext, pLast;
		static internal string sBefore, sAfter;

		static internal string sDateRangeLast;
		static internal string sDateRangeNext;
		static internal string sDateRangeWithin;
		static internal string sDateRangeAny;
		static internal string sDateRange;
		static internal string cEquals;
		static internal string sStart;
		static internal string sContain;
		static internal string sFinish;
		//Friend sIsNull As String 
		//Friend sIsNotNull As String 
		static internal string qEquals;
		static internal string qStart;
		static internal string qInList;
		static internal string qNot;
		static internal string qWith;
		static internal string lEquals;
		static internal string lStart;
		static internal string lFinish;
		static internal string lContain;

		static internal string opAnd, opOr;

		static internal string cAt;
		static internal string sOn;
		static internal string sOf;
		static internal string Checked;
		static internal string Save;
		static internal string SaveAdd;
		static internal string Cancel;

		static internal string cmPost;
		static internal string cmAdd;
		static internal string cmNo;
		static internal string cmNb;
		static internal string cmMissing;
		static internal string cmFrom;
		static internal string cmOn;

		// Error messages "err_*" and "warn_*" are constant in ENGLISH (not translated yet)
		static internal string err_NoPermission;
		static internal string err_NoDataDisp;
		static internal string err_NoData;
		static internal string err_NoQuery;
		internal const string err_NoQuery4Req = "No query ID specified in request.";
		internal const string err_NoDataInTable = " Database table \"{0}\" is empty.";
		internal const string warn_NoAccessSelections = "Selections are not allowed for this object.";
		internal const string warn_NoQueryDef = "No queries defined.";

#endregion

		static internal bool LoadLanguage(string LanguageKey)
		{
			switch (LanguageKey)
			{

				case "JP":
                    #region JAPANESE - Translation from Kazue Watanabe

                    if (_LOCAL != "Japanese")
					{
						_LOCAL = "Japanese";

						entity = "項目";
						entities = "項目";

						Welcome = "ようこそ{0}"; //{0}=login 
						AllEntities = "すべての{0}"; // {0}=entities 
						CommentsPostedOn = "{0:t}に掲載されたコメント。"; //{0}=time 
						InsertEntity = "新しい{0}を挿入してください。"; // {0}=entity 
						ModifyEntity = "{0}を修正してください."; // {0}=entity 
						DownloadEntity = "{0}をダウンロード"; // {0}=entity 
						NoEntity = "項目がみつかりません。"; // not {0}=entity b/c of panel details 

						ExportEntity = "この{0}をエクスポートしてください。"; // {0}=entity 
						ExportHeader = "ヘッダ";
						ExportSeparator = "セパレータ";
						ExportFirstLine = "フィールド名の最初の行";
						ExportFormat = "エクスポートするフォーマット";
						ExportFields = "エクスポートに含めるフィールド";
						IDkey = "ID (Primary Key)";
						ExportFormats = "コンマで区分けされた(CSV, TXT, XLS...)-HTML-SQL ステートメントを挿入する(SQL)-タブ separated values (TXT)-XML";

						MHValidValue = "{0}は有効な値をもっていなければいけません。"; //{0}=field 
						err_NoPermission = "許可されておりません。";
						err_NoDataDisp = "表示するデータはありません。";
						err_NoData = "データがありません。";
						NA = "N/A";
						NoUpload = "ファイルをアップロードすることができません。";
						NoUpload2 = "GIF, JPG, とPNGだけの画像フォーマットだけが許可されております。";
						err_NoQuery = "データベースクエリを実行することができません。"; 

						NewSave = "{1}に保存された新しい{0} ."; // {0}=entity {1}=now 
						CannotUpdate = "{0}をアップデートすることができません。 #{1}."; // {0}=entity {1}=ID 
						NoUpdate = "アップデートは必要とされません。";
						CannotDelete = "{0} #{1}を削除することができません。."; // {0}=entity {1}=ID 
						DeleteOK = "{1:t}でレコード　#{0}が削除されました。."; // {0}=ID {1}=time 
						Updated = "{1:t}で　{0}がアップデートされました。."; // {0}=entity {1}=time 
						DetailsUpdate = "詳細がアップデートされました";
						PleaseLogin = "ログインしてください。";
						Logout = "ログアウト";
						Login = "ログイン";
						LoginB = "ログイン";
						Password = "パスワード";
						InvalidLogin = "無効なログイン/パスワード";
						InvalidLogin2 = "もう一度お試しください。";
						//Remember = "記憶してください" 
						AddRow = "行を加える";
						DelRow = "行を削除する";
						Customize = "カスタマイズ";

						wPix = "画像付き";
						wDoc = "添付ファイル付き";
						wComments = "ユーザコメント付き";
						yes = "はい";
						no = "いいえ";
						any = "どれも";
						anyof = "のどれも";
						PubMine = "すべての公のものとわたしのもの";
						//MyEntities = "わたしの ~項目~" 

						AdvSearch = "高度検索";
						View = "表示";
						Edit = "編集";
						// Login = "ログイン" 
						New = "新しい";
						NewItem = "新項目";
						NewUpload = "新規アップロード";
						Search = "検索";
						NewSearch = "新規検索";
						Selections = "選択";
						Selection = "選択";
						Export = "エクスポート";
						SearchRes = "検索結果";
						Delete = "削除";
						ListAll = "全てを列挙";
						Print = "印刷";
						DeleteEntity = "この{0}を削除しますか?"; // {0}=entity 
						Back2SearchResults = "検索結果に戻る";

						pFirst = "最初";
						pPrev = "前";
						pNext = "次";
						pLast = "最後";
						sBefore = "前";
						sAfter = "後";

						sDateRangeLast = " 最後の ";
						sDateRangeNext = " 次の ";
						sDateRangeWithin = " 以内 ";
						sDateRangeAny = " 随時 ";
						sDateRange = "日|２４時間,週|1 週,月|1 月,年|1 年";
						cEquals = "等しい";
						sStart = "で始まる。";
						sContain = "含む";
						sFinish = "で終わる";
						//sIsNull = "空である" 
						//sIsNotNull = "空でない" 
						qEquals = " 等しい ";
						qStart = " で始まる ";
						qInList = " リストにある ";
						qNot = " でない ";
						qWith = " と ";
						lEquals = " = \"{0}\""; //{0}= FieldValue 
						lStart = " \"{0}\"で始まる。"; //{0}= FieldValue 
						lFinish = "\"{0}\"で終わる。"; //{0}= FieldValue 
						lContain = "\"{0}\"を含む。"; //{0}= FieldValue 

						opAnd = "および ";	//babelfish
						opOr = "か ";		//babelfish

						cAt = "で";
						sOn = "に";
						sOf = " の ";
						Checked = "チェック済み";
						Save = "保存";
						SaveAdd = "保存し他のものを追加しなさい。";
						Cancel = "キャンセル";

						cmPost = "コメントを掲載してください。";
						cmAdd = "ご自身のコメントを掲載してください。";
						cmNo = "この{0}にはユーザのコメントはまだありません"; //{0}=entity 
						cmNb = " この{1}には{0}のユーザコメントがあります。."; //{0}=NB {1}=entity 
						cmMissing = "いくつかのコメントが欠けています。";
						cmFrom = "から ";
						cmOn = " に ";

                    }
                    #endregion
                    return true;

				case "ES":
                    #region SPANISH - Translation from Gilberto Botaro

                    if (_LOCAL != "Spanish")
					{
						_LOCAL = "Spanish";

						entity = "entidad";
						entities = "entidades";

						Welcome = "Bienvenido {0}"; //{0}=login 
						AllEntities = "Todos los {0}"; // {0}=entidades
						CommentsPostedOn = "Comentario publicado en {0:t}."; //{0}=tiempo
						InsertEntity = "insertar nueva {0}."; // {0}=entidades
						ModifyEntity = "modificar {0}."; // {0}=entidades
						DownloadEntity = "Descargar {0}"; // {0}=entidades
						NoEntity = "No hay entidade encontrada."; // no {0}=entitdade b/c en panel de detalles

						ExportEntity = "Exportar esta {0}"; // {0} = entidad 
						ExportHeader = "Encabezado"; 
						ExportSeparator = "separador"; 
						ExportFirstLine = "Primera línea de nombres de campo"; 
						ExportFormat = "Formato de exportación"; 
						ExportFields = "Campos a incluir en la exportación"; 
						IDkey = "ID (clave primaria)";
						ExportFormats = "Separados por comas (CSV, TXT, XLS...)-HTML- INSERT SQL-Valores separados por tabuladores (TXT)-XML"; 

						MHValidValue = "{0} debe tener un valor válido."; // {0}=campo 
						err_NoPermission = "No se le permite"; 
						err_NoDataDisp = "No hay datos para mostrar";
						err_NoData = "No se dispone de datos";
						NA = "N/A"; 
						NoUpload = "No se puede cargar el archivo";
						NoUpload2 = "Sólo GIF, JPG, PNG y formatos de imagen se les permite";
						err_NoQuery = "No se puede ejecutar la consulta de bases de datos";

						NewSave = "Nueva {0} guardado en {1}."; // {0}=entidad {1}=ahora 
						CannotUpdate = "No se puede actualizar {0} #{1}."; // {0}=entidad {1}=ID 
						NoUpdate = "No se actualiza la información necesaria";
						CannotDelete = "No se puede eliminar {0} #{1}."; // {0}=entidad {1}=ID 
						DeleteOK = "Registro # {0} eliminado en {1: t}"; // {0}=ID {1}=tiempo 
						Updated = "{0} actualizado a {1: t}"; // {0}=entidad {1}=tiempo 
						DetailsUpdate = "Información actualizada";
						PleaseLogin = "Por favor, log in";
						Logout = "Cerrar sesión"; 
						Login = "Login"; 
						LoginB = "Login"; 
						Password = "Contraseña"; 
						InvalidLogin = "Invalid usuario/contraseña.";
						InvalidLogin2 = "Por favor, inténtalo de nuevo.";
						AddRow = "Añadir fila"; 
						DelRow = "Eliminar fila"; 
						Customize = "Personalizar"; 

						wPix = "con imagen"; 
						wDoc = "con el archivo adjunto"; 
						wComments = "Con los comentarios del usuario"; 
						yes = "Sí"; 
						no = "No"; 
						any = "Todo"; 
						anyof = "Cualquiera de"; 
						PubMine = "todos los públicos y las minas"; 

						AdvSearch = "Búsqueda avanzada"; 
						View = "Ver"; 
						Edit = "Editar";
						New = "Nuevo"; 
						NewItem = "Nueva partida"; 
						NewUpload = "Nueva Subir"; 
						Search = "Buscar"; 
						NewSearch = "Nueva Búsqueda"; 
						Selections = "Selecciones"; 
						Selection = "Selección"; 
						Export = "Exportar"; 
						SearchRes = "Resultados de la búsqueda"; 
						Delete = "Borrar"; 
						ListAll = "Todos"; 
						Print = "Imprimir"; 
						DeleteEntity = "Eliminar este {0}?"; // {0}=entidad 
						Back2SearchResults = "Volver a los resultados de la búsqueda"; 

						pFirst = "Primera"; 
						pPrev = "Anterior"; 
						pNext = "Siguiente"; 
						pLast = "Último"; 
						sBefore = "Antes"; 
						sAfter = "Después de";

						sDateRangeLast = "en la última"; 
						sDateRangeNext = "en el próximo"; 
						sDateRangeWithin = "dentro"; 
						sDateRangeAny = "cualquier momento"; 
						sDateRange = "día | 24 horas, la semana | 1 de la semana, el mes | 1 mes y año | 1 año"; 
						cEquals = "Igual"; 
						sStart = "Empieza con"; 
						sContain = "contenido"; 
						sFinish = "termina con"; 
						// sIsNull = "está vacía" 
						// sIsNotNull = "no está vacío" 
						qEquals = "iguales"; 
						qStart = "comienza con"; 
						qInList = "en la lista"; 
						qNot = "no"; 
						qWith = "con"; 
						lEquals = " = \"{0}\""; //{0}= FieldValue 
						lStart = " comienza con \"{0}\""; //{0}= FieldValue 
						lFinish = " termina con \"{0}\""; //{0}= FieldValue 
						lContain = " contiene \"{0}\""; //{0}= FieldValue 

						opAnd = " y ";	//babelfish
						opOr = " o ";		//babelfish

						cAt = "A"; 
						sOn = "On"; 
						sOf = " de "; 
						Checked = "Comprobado"; 
						Save = "Guardar"; 
						SaveAdd = "Guardar y añadir otro"; 
						Cancel = "Cancelar"; 

						cmPost = "Publicar sus comentarios"; 
						cmAdd = "Añadir sus propias observaciones"; 
						cmNo = "No hay comentarios de usuarios para esta {0} todavía"; // {0}=entidad 
						cmNb = "{0} comentarios de usuarios para este {1}."; // {0}=NB {1}=entidad 
						cmMissing = "Algunos comentarios están desaparecidos.";
						cmFrom = "De "; 
						cmOn = " on ";

                    }
                    #endregion
                    return true;

				case "PT":
                    #region  PORTUGUESE - Translation from Gilberto Botaro

                    if (_LOCAL != "Portuguese")
					{
						_LOCAL = "Portuguese";

						entity = "entidade";
						entities = "entidades";

						Welcome = "Bem Vindo {0}"; //{0}=login 
						AllEntities = "Todos os {0}"; // {0}=entidades
						CommentsPostedOn = "Comentário publicado em {0:t}."; //{0}=tempo
						InsertEntity = "inserir nova {0}."; // {0}=entidades
						ModifyEntity = "modificar {0}."; // {0}=entidades
						DownloadEntity = "Baixar {0}"; // {0}=entidades
						NoEntity = "Nenhuma {0} encontrada."; // no {0}=entidade b/c em panel de detalhes

						ExportEntity = "Exportar esta {0}"; // {0} = entidade
						ExportHeader = "Título";
						ExportSeparator = "separador";
						ExportFirstLine = "Primeira linha de nome do campo";
						ExportFormat = "Formato de exportação";
						ExportFields = "Campos a incluir na exportação";
						IDkey = "ID (chave primária)";
						ExportFormats = "separados por virgula (CSV, TXT, XLS...)-HTML-INSERT SQL (SQL)-Valores separados por tabulação (TXT)-XML";

						MHValidValue = "{0} deve ter um valor válido."; // {0}=campo 
						err_NoPermission = "Não é permitido";
						err_NoDataDisp = "Não há dados para exibir";
						err_NoData = "Não há dados disponíveis";
						NA = "N/A";
						NoUpload = "Não se pode carregar o arquivo";
						NoUpload2 = "Somente GIF, JPG, PNG e formatos de imagen são permitidos.";
						err_NoQuery = "Não se pode executar a consulta de base de dados.";

						NewSave = "Nova {0} incluída às {1}."; // {0}=entidade {1}=hora 
						CannotUpdate = "Não foi possível atualizar {0} #{1}."; // {0}=entidade {1}=ID 
						NoUpdate = "Não é necessário atualizar a informação.";
						CannotDelete = "Não foi possível excluir {0} #{1}."; // {0}=entidade {1}=ID 
						DeleteOK = "Registro # {0} eliminado em {1: t}"; // {0}=ID {1}=tempo 
						Updated = "{0} atualizado às {1: t}"; // {0}=entidade {1}=tempo 
						DetailsUpdate = "Informação atualizada";
						PleaseLogin = "Por favor, faça log in";
						Logout = "Finalizar Sessão";
						Login = "Login";
						LoginB = "Login";
						Password = "Senha";
						InvalidLogin = "Usuário/Senha Inválido.";
						InvalidLogin2 = "Por favor, tente novamente.";
						AddRow = "Adicionar linha";
						DelRow = "Excluir linha";
						Customize = "Personalizar";

						wPix = "com imagen";
						wDoc = "com arquivo anexo";
						wComments = "Com os comentários do usuário.";
						yes = "Sim";
						no = "Não";
						any = "Todo";
						anyof = "Qualquer de";
						PubMine = "todos os públicos e as minhas.";

						AdvSearch = "Busca avançada";
						View = "Ver";
						Edit = "Editar";
						New = "Novo";
						NewItem = "Nova partida";
						NewUpload = "Novo Upload";
						Search = "Buscar";
						NewSearch = "Nova Busca";
						Selections = "Seleções";
						Selection = "Seleção";
						Export = "Exportar";
						SearchRes = "Resultados da busca";
						Delete = "Excluir";
						ListAll = "Todos";
						Print = "Imprimir";
						DeleteEntity = "Eliminar este {0}?"; // {0}=entidade
						Back2SearchResults = "Voltar aos resultados da busca";

						pFirst = "Primeira";
						pPrev = "Anterior";
						pNext = "Seguinte";
						pLast = "Último";
						sBefore = "Antes de ";
						sAfter = "Depois de ";

						sDateRangeLast = "na última"; 
						sDateRangeNext = "no próximo"; 
						sDateRangeWithin = "dentro"; 
						sDateRangeAny = "qualquer momento"; 
						sDateRange = "día|24 horas, semana|1 semana, mes|1 mes e ano|1 año"; 
						cEquals = "Igual"; 
						sStart = "Inicia com "; 
						sContain = "contendo"; 
						sFinish = "termina com"; 
						// sIsNull = "está vazia" 
						// sIsNotNull = "não está vazia" 
						qEquals = " igual "; 
						qStart = " começa com "; 
						qInList = " em lista "; 
						qNot = " não "; 
						qWith = " com "; 
						lEquals = " = \"{0}\""; //{0}= FieldValue 
						lStart = " começa com \"{0}\""; //{0}= FieldValue 
						lFinish = " termina com \"{0}\""; //{0}= FieldValue 
						lContain = " contém \"{0}\""; //{0}= FieldValue 

						opAnd = " e ";	//babelfish
						opOr = " ou ";	//babelfish

						cAt = "A"; 
						sOn = "On"; 
						sOf = " de "; 
						Checked = "Comprovado"; 
						Save = "Salvar"; 
						SaveAdd = "Guardar e adicionar outro"; 
						Cancel = "Cancelar"; 

						cmPost = "Publicar seus comentários"; 
						cmAdd = "Adicionar suas próprias observações"; 
						cmNo = "Não há comentários de usuários para esta {0}"; // {0}=entidad 
						cmNb = "{0} comentários de usuários para esta {1}."; // {0}=NB {1}=entidad 
						cmMissing = "Alguns comentários estão desaparecidos.";
						cmFrom = "De "; 
						cmOn = " em ";

                    }
                    #endregion
                    return true;

                case "FR":
                    #region FRENCH - Translation from Eddy Boels - http://www.ed-design.org/

                    if (_LOCAL != "French")
					{
						_LOCAL = "French";

						entity = "article";
						entities = "articles";

						Welcome = "Bienvenue {0}"; // {0}=login 
						AllEntities = "Toutes les fiches {0}"; // {0}=entities 
						CommentsPostedOn = "Commentaires ajoutés le {0:t}."; // {0}=time 
						InsertEntity = "insérer une nouvelle fiche {0}."; // {0}=entity 
						ModifyEntity = "modifier la fiche {0}."; // {0}=entity 
						DownloadEntity = "Télécharger {0}"; // {0}=entity 
						NoEntity = "Aucune fiche trouvée."; // {0}=entity 

						ExportEntity = "Exporter cette fiche {0}"; // {0}=entity 
						ExportHeader = "Entête";
						ExportSeparator = "Séparateur";
						ExportFirstLine = "Première ligne pour les titres de champs";
						ExportFormat = "Format d'export";
						ExportFields = "Champs à inclure dans l'export";
						IDkey = "ID (clée primaire)";
						ExportFormats = "Séparés par une virgule (CSV, TXT, XLS...)-HTML-SQL script (SQL)-Valeurs séparées par des tabulations (TXT)-XML";

						MHValidValue = "{0} doit avoir une valeur valide."; // {0}=field 
						err_NoPermission = "Vous n'êtes pas autorisé à ";
						err_NoDataDisp = "Aucune donnée à afficher.";
						err_NoData = "Aucune donnée disponible.";
						NA = "N/A";
						NoUpload = "Impossible d'importer le fichier.";
						NoUpload2 = "Seuls les formats GIF, JPG et PNG sont autorisés !";
						err_NoQuery = "Impossible d'exécuter la requête base de donnée.";

						NewSave = "Nouvelle fiche {0} sauvegardée à {1}."; // {0}=entity {1}=now 
						CannotUpdate = "Impossible de mettre à jour la fiche {0} #{1}."; // {0}=entity {1}=ID 
						NoUpdate = "Aucune mise à jour nécessaire";
						CannotDelete = "Impossible de supprimer la fiche {0} #{1}."; // {0}=entity {1}=ID 
						DeleteOK = "Fiche {0} supprimée à {1:t}."; // {0}=ID {1}=time 
						Updated = "Fiche {0} mise à jour à {1:t}.";
						DetailsUpdate = "Détails mis à jour.";
						PleaseLogin = "Merci de vous identifier.";
						Logout = "Déconnexion";
						Login = "Nom d'utilisateur";
						LoginB = "Entrer";
						Password = "Mot de passe";
						InvalidLogin = "Identifiant/mot de passe invalides";
						InvalidLogin2 = "Merci de réessayer.";
						//Remember = "" 
						AddRow = "Ajouter une ligne";
						DelRow = "Supprimer ligne";
						Customize = "Personaliser";

						wPix = " avec image";
						wDoc = " avec fichier joint";
						wComments = "Avec commentaires de l'utilisateur";
						yes = "Oui";
						no = "Non";
						any = "Tout";
						anyof = "Parmi ";
						PubMine = "Fiches publiques ou personnelles";
						//MyEntities = "Mes fiches ~ENTITIES~" 

						AdvSearch = "Recherche avancée";
						View = "Lecture";
						Edit = "Edition";
						New = "Nouveau";
						NewItem = "Nouvelle entrée";
						NewUpload = "Nouveau fichier joint";
						Search = "Recherche";
						NewSearch = "Nouvelle recherche";
						Selections = "Selections";
						Selection = "Selection";
						Export = "Exporter";
						SearchRes = "Résultats de la recherche";
						Delete = "Supprimer";
						ListAll = "Liste complete";
						Print = "Impression";
						DeleteEntity = "Supprimer cette fiche {0}?"; //{0}=entity 
						Back2SearchResults = "Retours au Résultats de recherche";

						pFirst = "Premier";
						pPrev = "Précédent";
						pNext = "Suivant";
						pLast = "Dernier";
						sBefore = "Avant";
						sAfter = "Après";

						sDateRangeLast = " pendant le dernier "; 
						sDateRangeNext = " pendant le prochain ";
						sDateRangeWithin = " pendant le dernier/prochain";
						sDateRangeAny = " toute date ";
						sDateRange = "day|24 heures,week|1 semaine,month|1 mois,year|1 année"; //"day|24 hours,week|1 week,month|1 month,year|1 year" 

						cEquals = "Egale";
						sStart = "Commence par";
						sContain = "Contient";
						sFinish = "Termine par";
						//sIsNull = "Est vide" 
						//sIsNotNull = "N'est pas vide" 
						qEquals = " égale ";
						qStart = " commence par ";
						qInList = " dans la liste ";
						qNot = " sans ";
						qWith = " avec ";
						lEquals = " = \"{0}\""; //{0}= FieldValue 
						lStart = " commence par \"{0}\""; //{0}= FieldValue 
						lFinish = " fini par \"{0}\""; //{0}= FieldValue 
						lContain = " contient \"{0}\""; //{0}= FieldValue 


						opAnd = " et ";
						opOr = " ou ";

						cAt = "à";
						sOn = "Le";
						sOf = " de ";
						Checked = "cochée";
						Save = "Sauvegarder";
						SaveAdd = "Sauvegarder et nouvel ajout";
						Cancel = "Annuler";

						cmPost = "Ajouter vos commentaires";
						cmAdd = "Ajouter vos propres commentaires";
						cmNo = "Aucun commentaire pour cette fiche {0}."; //{0}=entity 
						cmNb = "{0} commentaires pour cette fiche {1}."; //{0}=nb {1}=entity 
						cmMissing = "Il manque des commentaires.";
						cmFrom = " - De ";
						cmOn = " à ";

                    }
                    #endregion
                    return true;

				case "CA":
					#region CATALA - Translation from Oscar Benadi

					if (_LOCAL != "Catala")
					{
						_LOCAL = "Catala";

						entity = "entitat";
						entities = "entitats";

						Welcome = "Benvingut {0}"; //{0}=login 
						AllEntities = "Tots els {0}"; // {0}=entidades
						CommentsPostedOn = "Comentari publicat en {0:t}."; //{0}=tiempo
						InsertEntity = "inserir nova {0}."; // {0}=entidades
						ModifyEntity = "modificar {0}."; // {0}=entidades
						DownloadEntity = "Descarregar {0}"; // {0}=entidades
						NoEntity = "No s'han trobat entitats."; // no {0}=entitdade b/c en panel de detalles

						ExportEntity = "Exportar aquesta {0}"; // {0} = entidad 
						ExportHeader = "Capçalera";
						ExportSeparator = "separador";
						ExportFirstLine = "Primera línea de noms de camp";
						ExportFormat = "Format d'exportació";
						ExportFields = "Camps a incluoure en l'exportació";
						IDkey = "ID (clau primària)";
						ExportFormats = "Separats per comes (CSV, TXT, XLS...)-HTML-INSERT SQL-Valors separats per tabuladors (TXT)-XML";

						MHValidValue = "{0} ha de tenir un valor vàlid."; // {0}=campo 
						err_NoPermission = "No t'està permès";
						err_NoDataDisp = "No hi ha dades a mostrar";
						err_NoData = "No es disposa de dades";
						NA = "N/A";
						NoUpload = "No es pot carregar l'arxiu";
						NoUpload2 = "Només es permeten GIF, JPG, PNG i formats d'imatge";
						err_NoQuery = "No es pot executar la consulta de base de dades";

						NewSave = "Nova {0} guardada en {1}."; // {0}=entidad {1}=ahora 
						CannotUpdate = "No es pot actualitzar {0} #{1}."; // {0}=entidad {1}=ID 
						NoUpdate = "No s'actualiza la informació necessària";
						CannotDelete = "No es pot eliminar {0} #{1}."; // {0}=entidad {1}=ID 
						DeleteOK = "Registre # {0} eliminat en {1: t}"; // {0}=ID {1}=tiempo 
						Updated = "{0} actualitzat a {1: t}"; // {0}=entidad {1}=tiempo 
						DetailsUpdate = "Informació actualitzada";
						PleaseLogin = "Si us plau, valida't";
						Logout = "Tancar sessió";
						Login = "Validar-se";
						LoginB = "Validar-se";
						Password = "Contrasenya";
						InvalidLogin = "Usuari/clau no vàlida.";
						InvalidLogin2 = "Si us plau, intenta-ho de nou.";
						AddRow = "Afegir fila";
						DelRow = "Eliminar fila";
						Customize = "Personalitzar";

						wPix = "amb imatge";
						wDoc = "amb l'arxiu adjunt";
						wComments = "Amb els comentaris del usuari";
						yes = "Sí";
						no = "No";
						any = "Tots";
						anyof = "Qualsevol de";
						PubMine = "tots els públics i les meves";

						AdvSearch = "Cerca avançada";
						View = "Veure";
						Edit = "Editar";
						New = "Nou";
						NewItem = "Nou element";
						NewUpload = "Nova Pujada";
						Search = "Cercar";
						NewSearch = "Nova Cerca";
						Selections = "Seleccions";
						Selection = "Selecció";
						Export = "Exportar";
						SearchRes = "Resultats de la cerca";
						Delete = "Borrar";
						ListAll = "Tots";
						Print = "Imprimir";
						DeleteEntity = "Eliminar aquest {0}?"; // {0}=entidad 
						Back2SearchResults = "Tornar als resultats de la cerca";

						pFirst = "Primer";
						pPrev = "Anterior";
						pNext = "Següent";
						pLast = "Últim";
						sBefore = "Abans";
						sAfter = "Després de";

						sDateRangeLast = "en l'última";
						sDateRangeNext = "en el pròxim";
						sDateRangeWithin = "dintre";
						sDateRangeAny = "qualsevol moment";
						sDateRange = "dia|24 hores,la setmana|1 de la setmana,el mes|1 mes i any|1 any";
						cEquals = "Igual";
						sStart = "Comença amb";
						sContain = "contingut";
						sFinish = "acaba amb";
						// sIsNull = "está vacía" 
						// sIsNotNull = "no está vacío" 
						qEquals = "iguals";
						qStart = "comença amb";
						qInList = "en la lista";
						qNot = "no";
						qWith = "amb";
						lEquals = " = \"{0}\""; //{0}= FieldValue 
						lStart = " comença amb \"{0}\""; //{0}= FieldValue 
						lFinish = " acaba amb \"{0}\""; //{0}= FieldValue 
						lContain = " conté \"{0}\""; //{0}= FieldValue 

						opAnd = " y ";	//babelfish
						opOr = " o ";		//babelfish

						cAt = "A";
						sOn = "On";
						sOf = " de ";
						Checked = "Comprovat";
						Save = "Guardar";
						SaveAdd = "Guardar i afegir un altre";
						Cancel = "Cancel·lar";

						cmPost = "Publicar els comentaris propis";
						cmAdd = "Afegir les observaciones pròpies";
						cmNo = "No hi ha comentaris d'usuaris per aquesta {0} encara"; // {0}=entidad 
						cmNb = "{0} comentaris d'usuaris per aquesta {1}."; // {0}=NB {1}=entidad 
						cmMissing = "Alguns comentaris han desaparegut .";
						cmFrom = "De ";
						cmOn = " on ";

					}
					#endregion
					return true;

				default:
                    #region ENGLISH->Chinese

                    if (_LOCAL != "English")
					{
						_LOCAL = "English";

                        entity = "记录";//"item";
                        entities = "记录";//"items";

                        Welcome = "欢迎{0}"; //"Welcome {0}"; //{0}=login 
                        AllEntities = "所有 {0}";// "All {0}"; // {0}=entities 
                        CommentsPostedOn = "{0:t}添加的注释。";// "Comments posted on {0:t}."; //{0}=time 
                        InsertEntity = "插入新记录{0}"; //"insert new {0}."; // {0}=entity 
                        ModifyEntity = "修改{0}";// "modify {0}."; // {0}=entity 
                        DownloadEntity = "下载{0}"; //"Download {0}"; // {0}=entity 
                        NoEntity = "没有找到记录。"; //"No item found."; // not {0}=entity b/c of panel details 

                        ExportEntity = "导出此{0}"; //"Export this {0}"; // {0}=entity 
                        ExportHeader = "首行";// "Header";
                        ExportSeparator = "分割符号";//"Separator";
                        ExportFirstLine = "首行取字段名称";//"First line for field names";
                        ExportFormat = "输出文件格式";//"Export Format";
                        ExportFields = "哪些字段将被导出";//"Fields to include in the export";
                        IDkey = "ID（主键）"; // "ID (Primary Key)";
						ExportFormats = "Comma separated (CSV, TXT, XLS...)-HTML-SQL Insert Statements (SQL)-Tab separated values (TXT)-XML";

                        MHValidValue = "{0}必须有合法的值"; //"{0} must have a valid value."; //{0}=field 
                        err_NoPermission = "你不允许"; //"You are not allowed to ";
                        err_NoDataDisp = "没有数据显示"; //"No Data to display.";
                        err_NoData = "没有可用数据"; //"No data available.";
						NA = "N/A";
						NoUpload = "Cannot upload file.";
						NoUpload2 = "Only GIF, JPG, and PNG image formats are allowed.";
                        err_NoQuery = "不能执行数据库查询。"; // "Cannot execute Database query.";

                        NewSave = "新的{0}记录在{1}被保存。"; //"New {0} saved at {1}."; // {0}=entity {1}=now 
                        CannotUpdate = "不能更新#{1}{0}记录。"; // "Cannot update {0} #{1}."; // {0}=entity {1}=ID 
                        NoUpdate = "不需要更新。"; // "No update necessary.";
						CannotDelete = "不能删除#{1}{0}记录。"; //"Cannot delete {0} #{1}."; // {0}=entity {1}=ID 
						DeleteOK = "新的{0}记录在{1:t}被删除。"; //"Record #{0} deleted at {1:t}."; // {0}=ID {1}=time 
						Updated = "新的{0}记录在{1:t}被更新。"; //"{0} updated at {1:t}."; // {0}=entity {1}=time 
                        DetailsUpdate = "从表记录备更新。"; //"Details updated.";
                        PleaseLogin = "请登录。"; //"Please log in.";
                        Logout = "注销"; //"Logout";
                        Login = "登录"; //"Login";
                        LoginB = "登录"; //"Login";
                        Password = "口令"; //"Password";
                        InvalidLogin = "不正确的用户/口令。"; //"Invalid Login/Password.";
                        InvalidLogin2 = "请再试。"; //"Please, try again.";
						//Remember = "Remember me" 
                        AddRow = "新增子项"; //"Add row";
                        DelRow = "删除子项"; //"Delete row";
                        Customize = "定制"; // "Customize";

						wPix = " with picture";
						wDoc = " with attachment";
						wComments = "With User comments";
						yes = "Yes";
						no = "No";
						any = "Any";
						anyof = "Any of";
						PubMine = "All public and mine";
						//MyEntities = "My ~ENTITIES~" 

                        AdvSearch = "高级查找"; //"Advanced Search";
                        View = "查看"; //"View";
                        Edit = "编辑"; //"Edit";
						// Login = "Login" 
                        New = "新增"; //"New";
                        NewItem = "新增记录"; //"New Item";
						NewUpload = "New Upload";
                        Search = "查找"; //"Search";
                        NewSearch = "新查询"; //"New Search";
						Selections = "Selections";
						Selection = "Selection";
                        Export = "导出"; //"Export";
                        SearchRes = "查询结果"; //"Search Result";
                        Delete = "删除"; //"Delete";
                        ListAll = "列出所有"; //"List All";
                        Print = "打印"; //"Print";
                        DeleteEntity = "你要删除记录{0}"; //"Delete this {0}?"; // {0}=entity 
                        Back2SearchResults = "回到查询结果集"; //"Back to search results";

                        pFirst = "首条记录"; // "First";
                        pPrev = "上一记录"; //"Previous";
                        pNext = "下一记录"; //"Next";
                        pLast = "末条记录"; //"Last";
                        sBefore = "之前"; //"Before";
                        sAfter = "之后"; //"After";

						sDateRangeLast = " in the last "; 
						sDateRangeNext = " in the next ";
						sDateRangeWithin = " within ";
						sDateRangeAny = " any time ";
						sDateRange = "day|24 hours,week|1 week,month|1 month,year|1 year";
                        cEquals = "等于"; //"Equals";
                        sStart = "开头是"; //"Starts with";
                        sContain = "包含"; //"Contains";
                        sFinish = "结尾是"; //"Finishes with";
						//sIsNull = "Is empty" 
						//sIsNotNull = "Is not empty" 
                        qEquals = " 等于"; //" equals ";
                        qStart = "开头是"; //" starts with ";
                        qInList = "在列表中"; //" in list ";
						qNot = " not ";
						qWith = " with ";
						lEquals = " = \"{0}\""; //{0}= FieldValue 
                        lStart = " 以\"{0}\"开头";// " starts with \"{0}\""; //{0}= FieldValue 
						lFinish =" 以\"{0}\"结尾";//  " finishes with \"{0}\""; //{0}= FieldValue 
                        lContain = " 包含{0}"; //" contains \"{0}\""; //{0}= FieldValue 

                        opAnd = "并且"; //" and ";
                        opOr = "或";//" or ";

						cAt = "At";
						sOn = "On";
						sOf = " of ";
						Checked = "Checked";
                        Save = "保存"; //"Save";
                        SaveAdd = "保存并继续新增"; //"Save and Add Another";
                        Cancel = "取消"; //"Cancel";

						cmPost = "Post your comments";
						cmAdd = "Add your own comments";
						cmNo = "No user comments for this {0} yet."; //{0}=entity 
						cmNb = "{0} user comments for this {1}."; //{0}=NB {1}=entity 
						cmMissing = "Some comments are missing.";
						cmFrom = "From ";
						cmOn = " on ";

                    }
                    #endregion
                    return (LanguageKey=="EN");

			}
		}

	}
}
